﻿package plugin.npcDialog
{
    import com.sh.game.consts.*;
    import com.sh.game.global.*;
    import plugin.npcDialog.ui.*;
    import view.*;

    public class NpcDialog extends FlashUIBase
    {

        public function NpcDialog()
        {
            return;
        }// end function

        override protected function preLoaderInit() : void
        {
            super.preLoaderInit();
            appendLoader(Config.getUrl("assets/images/mornui/common.swf", ResourceType.NORMAL));
            appendLoader(Config.getUrl("assets/images/mornui/td.swf", ResourceType.NORMAL));
            return;
        }// end function

        override protected function initGUI() : void
        {
            super.initGUI();
            mGUI = new NpcDialogUIControl(this);
            return;
        }// end function

        override protected function openRefresh() : void
        {
            return;
        }// end function

        override protected function closeComplete() : void
        {
            super.closeComplete();
            this.uiControl.close();
            return;
        }// end function

        override protected function openBefore() : void
        {
            this.uiControl.openRefresh(data);
            return;
        }// end function

        private function get uiControl() : NpcDialogUIControl
        {
            return mGUI as NpcDialogUIControl;
        }// end function

    }
}
